package org.projectback.listener;

import com.rabbitmq.client.Channel;
import lombok.extern.slf4j.Slf4j;
import org.projectback.entity.AccountEntity.dataTransferObject.emailMessageDTO;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@RabbitListener(queues = "deadQueue")
public class deadQueueListener {
    @RabbitHandler
    public void process(emailMessageDTO emailMessageDTO, Channel channel) {
        log.info(emailMessageDTO.toString());
    }
}
